import Layout from '@/components/Layout.vue'

const admin = [
    {
        name: "admin",
        path: "/",
        component: Layout,
        meta: { icon: "dashicons:admin-network", title: "管理" },
        children: [
            {
                name: 'config',
                path: '/config',
                component: () => import('@/views/admin/ConfigView.vue'),
                meta: {
                    icon: "ph:globe",
                    title: '站点配置',
                    roles: ['root'],
                    order: 0
                },
            },
            {
                name: 'permissions',
                path: '/permissions',
                component: () => import('@/views/admin/PermissionsView.vue'),
                meta: {
                    icon: "material-symbols:shield-lock-outline",
                    title: '权限配置',
                    roles: ['root'],
                    order: 1
                },
            },
            {
                name: 'Page3',
                path: '/page3',
                component: () => import('@/views/test/Page3.vue'),
                meta: {
                    title: '动态路由3',
                    roles: ['admin'],
                    order: 3
                },
            },
        ]
    }
]

export default admin;